<?php
include "../config.php";
$Login  = new Login();
$Login->verificaLogin(false,true);

if(isset($_POST["usr"]) && isset($_POST["pass"])){
	$erro = $Login->logar($_POST["usr"], $_POST["pass"]);
}
	
?>

<!DOCTYPE HTML>
<html lang="pt-br">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="estilo.css">
	<title>Login</title>
	<?php include DIRVIEWS."html/topo.html"?>
    <style type="text/css">
      body {
        padding-top: 40px;
        padding-bottom: 40px;
        background-color: #f5f5f5;
      }

    
    </style>
</head>
<body>
	<?php if(strlen($erro) > 0 ){?>
		<div class="alert alert-warning" role="alert" id="msg-2"> 
			<?php echo $erro;?>
		</div>	
	<?php }?>
	<?php include DIRVIEWS."html/login.html"?>
	
	<?php include DIRVIEWS."html/rodape.html"?>
</body>
</html>
